package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;

import java.io.Serializable;


/**
 * 团长粉丝信息
 * @author XJY
 */
public class Leaderfan implements Serializable {

	private Long id;							//ID
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private Long leaderId;					    //团长id
	private String unionid;					    //粉丝UnionId
	private Integer orderCount;					//粉丝订单数
	private Date gmtLatsBuy;					//粉丝最后购买时间

	private String nickname;					//昵称
	private String img;							//头像
    public Leaderfan(){

    }

    public Leaderfan(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }


    public Leaderfan(Long leaderId,String unionid) {
       this.gmtCreated=new Date();
       this.delStatus=DelStatus.NODEL;
       this.gmtModify=gmtCreated;
       this.leaderId=leaderId;
       this.unionid=unionid;
       this.orderCount=1;
       this.gmtLatsBuy=gmtCreated;
    }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setLeaderId(Long leaderId){
		this.leaderId=leaderId;
	}

	public Long getLeaderId(){
		return leaderId;
	}

	public String getUnionid() {
		return unionid;
	}

	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}

	public void setOrderCount(Integer orderCount){
		this.orderCount=orderCount;
	}

	public Integer getOrderCount(){
		return orderCount;
	}

	public void setGmtLatsBuy(Date gmtLatsBuy){
		this.gmtLatsBuy=gmtLatsBuy;
	}

	public Date getGmtLatsBuy(){
		return gmtLatsBuy;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

}
